package com.aikon.wht.net;

import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Collections;
import java.util.List;
import java.util.UUID;

import com.google.common.collect.Lists;

public class TestOfNet {

	public static int i;

	public static void main(String[] args) throws UnknownHostException {
		System.out.println(InetAddress.getLocalHost().getHostName());
		System.out.println(UUID.randomUUID());
		System.out.println(System.getProperty("os.name").toLowerCase());

		// retry: // 1
		// for (int i = 0; i < 10; i++) {
		// retry: // 2
		// while (i == 5) {
		// continue retry;
		// }
		// System.out.print(i + " ");
		// }
		//
		//

		retry: 
			for (;;) {
			if (i == 50) {
				i=i+1;
				break retry;
			}
//			if (i == 10) {
//				break retry;
//			}
			System.out.println(i);

			i++;
			if (i == 100) {
				break;
			}
		}
		
		
		List<Integer> integerList = Lists.newArrayList(1,2,3,4);
		for(Integer i : integerList){
			System.out.println(i);
		}
		Collections.reverse(integerList);
		for(Integer i : integerList){
			System.out.println(i);
		}
	}
}
